home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / usr / sybase / doc / dbnumcompute.man < prev    next >
Text File  |  1993-04-22  |  2KB  |  67 lines

  1.  
  2.   1                       Version 4.0 -- 5/1/89             dbnumcompute
  3.   ______________________________________________________________________
  4.  
  5.   NAME:  dbnumcompute
  6.  
  7.   FUNCTION:
  8.        Return the number of  COMPUTE  clauses  in  the  current  set  of
  9.        results.
  10.  
  11.   SYNTAX:
  12.        int dbnumcompute(dbproc)
  13.  
  14.        DBPROCESS *dbproc;
  15.  
  16.   COMMENTS:
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   dbnumcompute            Version 4.0 -- 5/1/89                        2
  25.   ______________________________________________________________________
  26.  
  27.        o This routine returns the  number  of  COMPUTE  clauses  in  the
  28.          current  set  of  results.   The  application can call it after
  29.          dbresults() returns SUCCEED.  For example, given the SQL state-
  30.          ment:
  31.  
  32.               select dept, name from employee
  33.                 order by dept, name
  34.                 compute count(name) by dept
  35.                 compute count(name)
  36.  
  37.          the call dbnumcompute(dbproc) will return 2 since there are two
  38.          COMPUTE clauses in the SELECT statement.
  39.  
  40.   PARAMETERS:
  41.        dbproc -  A pointer to the DBPROCESS structure that provides  the
  42.            connection for a particular front-end/SQL Server process.  It
  43.            contains all the information that DB-Library uses  to  manage
  44.  
  45.  
  46.   3                       Version 4.0 -- 5/1/89             dbnumcompute
  47.   ______________________________________________________________________
  48.            communications and data between the front end and SQL Server.
  49.  
  50.   RETURNS:
  51.        The number of COMPUTE clauses in the current set of results.
  52.  
  53.   SEE ALSO:
  54.        dbnumalts, dbresults
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.